home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / StarShipView.BackModule / Warp1.bproj / Warp1.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.3 KB  |  70 lines

  1. #import <appkit/appkit.h>
  2. #import "Thinker.h"
  3. #import "StarShipProtocol.h"
  4. #import "Warp1Common.h"
  5. #import "Warp1Wraps.h"
  6.  
  7.  
  8. #define MAXLINES 100    //max of  lines - start indices with 0
  9.  
  10.  
  11. @interface Warp1:Object
  12. {
  13.         struct line{
  14.         int toggle;
  15.         float startDist;
  16.         float dist1;
  17.         float oldDist1;
  18.         int delay;
  19.         float theta;
  20.         float length;
  21.         float oldLength;
  22.         float r;
  23.         float g;
  24.         float b;
  25.         int stopped;
  26.     }lines[MAXLINES];  
  27.     
  28.     
  29.     id starsObject;
  30.     
  31.     NXPoint                centerOfScreen;
  32.     float                radius;
  33.     
  34.     BOOL                starsStopping;    //if starsObject has been told to stop
  35.     BOOL                starsStopped;
  36.     BOOL                 soundEnabled;
  37.     float                starSpeed;
  38.     int                    starCounter;
  39.     int                    currentCycle;
  40.     int                    cycles;                //cycle slider value
  41.     int                    totalStopped;
  42.  
  43.     Sound *pwrDownSnd;
  44.     Sound  *pwrUpSnd;
  45.  
  46.     
  47.     
  48.      int                    startInterval;        //how often to start
  49.  
  50.     float                objectSpeed;        //when creating next body
  51.  
  52.     NXRect        bounds;
  53.     BOOL        firstState;
  54. }
  55.  
  56. - init;
  57. - setCenter;
  58. - convertToXY:(float)dist :(NXPoint *)point :(float)theta;
  59. - setFirstState;
  60. - setStartInterval: (Slider *)sender;
  61. - setObjectSpeed: (Slider *)sender;
  62. - setStarSpeed:(Slider *)sender;
  63. - setBoundsRect:(NXRect *)r;
  64. - setStarsOutlet:(id)starsOutlet;
  65. - eraseLine:(int)index;
  66. - drawLine:(int)index;
  67. - newLine:(int)index;
  68. - newDist:(int)index;
  69. @end
  70.